Move API endpoints to /api

This commit is contained in:
Michael Jackson
2018-09-01 06:37:48 -07:00
parent 2c97136279
commit 185a956fb9
14 changed files with 420 additions and 184 deletions

View File

@ -50,7 +50,7 @@ class Layout extends React.Component {
componentDidMount() {
this.adjustUnderline();
fetch("/_stats?period=last-month")
fetch("/api/stats?period=last-month")
.then(res => res.json())
.then(stats => this.setState({ stats }));