QGIS/src/server/qgsserverapi.cpp
Alessandro Pasotti 92ac7a2e93
[server] Server api and WFS3 (#10016)
Implementation of OGC API and WFS3 core draft specification
2019-08-06 16:38:21 +02:00

38 lines
1.3 KiB
C++

/***************************************************************************
qgsserverapi.cpp
Class defining the service interface for QGIS server APIs.
-------------------
begin : 2019-04-16
copyright : (C) 2019 by Alessandro Pasotti
email : elpaso at itopen dot it
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include "qgsserverapi.h"
QgsServerApi::QgsServerApi( QgsServerInterface *serverIface )
: mServerIface( serverIface )
{
}
bool QgsServerApi::accept( const QUrl &url ) const
{
return url.path().contains( rootPath() );
}
QgsServerInterface *QgsServerApi::serverIface() const
{
return mServerIface;
}