Basic JSON RESTful client fetching items from a local server at application start and adding them to the model.
This commit is contained in:
13
network/apiroutes.h
Normal file
13
network/apiroutes.h
Normal file
@ -0,0 +1,13 @@
|
||||
#ifndef APIROUTES_H
|
||||
#define APIROUTES_H
|
||||
|
||||
#include <QString>
|
||||
|
||||
// TODO add namespace
|
||||
|
||||
static const QString baseUrl = "http://127.0.0.1:4000";
|
||||
static const QString apiPrefix = "/api/";
|
||||
|
||||
static const QString ROUTE_ITEMS = apiPrefix + "items";
|
||||
|
||||
#endif // APIROUTES_H
|
||||
Reference in New Issue
Block a user