Tweaked the contents of env variables, read more
NEWS_URI and AUTH_URI had the end of their routes lopped off, so I could reference /admin using either one of them.
This commit is contained in:
@@ -53,7 +53,7 @@ const handleSubmit = async (title, author, body, tokenFetch) => {
|
||||
|
||||
//fetch POST json data
|
||||
const result = await tokenFetch(
|
||||
`${process.env.NEWS_URI}`,
|
||||
`${process.env.NEWS_URI}/news`,
|
||||
{
|
||||
method: 'POST',
|
||||
headers: {
|
||||
|
||||
Reference in New Issue
Block a user