@app.get("/login")
@app.get("/search")
@app.get("/new")
-@app.get("/notes")
@app.get("/note/{title}")
async def root(title: str = ""):
with open("flatnotes/dist/index.html", "r", encoding="utf-8") as f:
home: 1,
note: 2,
search: 3,
- notes: 4,
},
currentView: 1,
this.currentView = this.views.note;
}
- // Notes
- else if (basePath == constants.basePaths.notes) {
- this.updateDocumentTitle();
- this.currentView = this.views.notes;
- }
-
// Login
else if (basePath == constants.basePaths.login) {
this.updateDocumentTitle("Log In");